package org.frame.factory;

import java.io.InputStream;

public class FactoryBuilderDirector {
    private  IBuilder builder;
    private  InputStream input;

    public FactoryBuilderDirector(InputStream input) {
        this.input = input;
        builder = new FactoryBuilder();
    }

    public InputStream getInput() {
        return input;
    }

    public void setInput(InputStream input) {
        this.input = input;
    }

    public IFactory build(){
        return this.builder.build(input);
    }

}
